package com.springboot.spring01ioc.config;

import com.springboot.spring01ioc.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    @Bean(initMethod = "initUser",destroyMethod = "destoryUser")
    public User user(){
        User user = new User();
        return user;
    }
}
